//
// Created by Luis on 2022/4/14.
//

#ifndef FFMPEG_LYCALLJAVA_H
#define FFMPEG_LYCALLJAVA_H

#include "jni.h"
#include <linux/stddef.h>
#include "AndroidLog.h"

#define MAIN_THREAD 0
#define CHILD_THREAD 1
class LYCallJava {

public:
    _JavaVM *javaVM = NULL;
    JNIEnv *jniEnv = NULL;
    jobject jobj;

    jmethodID jmid_parpared;
    jmethodID jmid_timeinfo;
public:
    LYCallJava(_JavaVM *javaVM, JNIEnv *env, jobject *obj);
    ~LYCallJava();
    void onCallParpared(int type);
    void onCallTimeInfo(int type, int curr, int total);
};
#endif //FFMPEG_LYCALLJAVA_H
